import React from 'react';
import {
    BrowserRouter as Router,
    Route,
    Link,
    Redirect,
} from 'react-router-dom'
import Login from './components/Login/Login.js';
import Registered from './components/Registered/Registered.js';

import Homepage from './components/Homepage/Homepage.js';
import styles from './App.css';

class App extends React.Component{
    constructor(){
        super();
    }
    render(){
        return(
            <Router>
                <div className={styles.root}>
                    <Route exact path="/" component={Login} />
                    <Route exact path="/login" component={Login} />
                    <Route exact path="/registered" component={Registered} />
                    <Route exact path="/homepage" component={Homepage} />
                </div>
            </Router>
        )
    }
}

export default App;